﻿<%if not in_sdcms then response.write("template load fail"):response.end() end if%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{sdcms[seokey]}" />
<meta name="Description" content="{sdcms[seodesc]}" />
<title>{sdcms[webname]}{sdcms[seotitle]} - powered by sdcms</title>
<link href="{webroot}lib/css/base.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/public.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/home.css" rel="stylesheet" type="text/css" />
<script>var webroot="{webroot}";</script>
<script src="{webroot}lib/js/jquery.js"></script>
<script src="{webroot}lib/js/jquery-migrate-1.1.0.min.js"></script>
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/js/base.js"></script>
<script src="{webroot}lib/js/mobile.js"></script>
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script src="{webroot}lib/validator/zh_CN.js"></script>
<script src="{webroot}theme/default/js/sdcms.js"></script>
<script src="{webroot}theme/default/js/jquery.slidy.min.js"></script>
<script src="{webroot}theme/default/js/home.js"></script>
</head>

<body>
    {sdcms:include("sdcms_head.asp")}
    <div id="position">您所在的位置：<a href="{webroot}">首页</a></div>
    <div class="w980 mt10 mc">
        <div class="l b home_flash">
            <ul id="flash">
                {sdcms:rs top="5" field="id,title,style,createdate,isurl,url,classid,pic,intro" table="sd_content" where="islock=1 and ispic=1 and isnice=1" order="ontop desc,id desc"}
                {rs:eof}
                <li>
                    <div class="pic">
                    <img src="{webroot}theme/default/pic/f01.jpg" width="300" height="210" />
                    <div class="title">台湾女同性恋首次举行佛教婚礼</div>
                    <div class="intro">　　8月11日，台湾桃园，同为佛教徒的台湾女同性恋情侣美瑜和雅婷，依照传统佛教仪式举行婚礼。</div>
                    </div>
                </li>
                <li>
                    <div class="pic">
                    <img src="{webroot}theme/default/pic/f02.jpg" width="300" height="210" />
                    <div class="title">北京，奥运场馆还好么</div>
                    <div class="intro">　　有的成了乐园，有的挤满游客，有的变成小年轻的high场，有的则几近荒芜</div>
                    </div>
                </li>
                <li>
                    <div class="pic">
                    <img src="{webroot}theme/default/pic/f03.jpg" width="300" height="210" />
                    <div class="title">美国洛马公司展示舰载无人战机概念</div>
                    <div class="intro">马丁公司近日透露其在研制中的多种不同领域的新型无人战机。</div>
                    </div>
                </li>
                <li>
                    <div class="pic">
                    <img src="{webroot}theme/default/pic/f04.jpg" width="300" height="210" />
                    <div class="title">解码器1分钟内盗车四川警方破获盗车团伙</div>
                    <div class="intro">一块巴掌大的解码器，竟可以代替车钥匙直接启动汽车，一个盗窃团伙利用这种高科技仪器四处作案。</div>
                    </div>
                </li>
                <li>
                    <div class="pic">
                    <img src="{webroot}theme/default/pic/f05.jpg" width="300" height="210" />
                    <div class="title">大连女子扛4米长蟒蛇海边戏水</div>
                    <div class="intro">在大连开发区南坨子浴场，一名女子带着一条巨大的蟒蛇到海里冲凉，立刻引来了很多人围观。</div>
                    </div>
                </li>
                {/rs:eof}
                <li>
                    <div class="pic">
                    <a href="{$rs[link]}" title="{$rs[title]}"><img src="{$rs[pic]}" width="300" height="210" alt="{$rs[title]}" /></a>
                    <div class="title">{sdcms.cutstr($rs[title],30,1)}</div>
                    <div class="intro">{sdcms.cutstr(sdcms.nohtml($rs[intro]),90,1)}</div>
                    </div>
                </li>
                {/sdcms:rs}
            </ul>
        </div>
        
        <div class="l b" id="topnew">
        {sdcms:rs top="4" field="id,title,style,createdate,isurl,url,classid,pic,intro" table="sd_content" where="islock=1 and isnice=1" order="ontop desc,id desc"}
            <div class="title"><a href="{$rs[link]}" title="{$rs[title]}">{sdcms.cutstr($rs[title],30,1)}</a></div>
            <div class="intro">{sdcms.cutstr(sdcms.nohtml($rs[intro]),70,1)}</div>
            {/sdcms:rs}
        </div>
        
        <div class="l b" id="tophot">
            <div class="subject">今日热点</div>
            <ul class="toplist">
                {sdcms:rs top="10" field="id,title,style,createdate,isurl,url,classid" table="sd_content" where="islock=1" order="hits desc,id desc"}
                    {rs:eof}<li>没有资料</li>{/rs:eof}
                    <li><a href="{$rs[link]}" title="{$rs[title]}"{if $rs[isurl]=1} target="_blank"{/if} {$rs[style]}>{sdcms.cutstr($rs[title],30,1)}</a></li>
                    {/sdcms:rs}   
            </ul>
        </div>
    </div>
    
    <div class="w978 mt10 mc b">
        <div class="subject">热门图片</div>
        <div class="p10" id="topphoto">
            <div class="ileft"><img src="{webroot}theme/default/images/arr_left.gif" width="32" height="43" /></div>
            <div class="ilist imglist">
            <ul>
            {sdcms:rs top="10" field="id,title,style,createdate,isurl,url,classid,pic,intro" table="sd_content" where="islock=1 and ispic=1" order="hits desc,id desc"}
                {rs:eof}
                <li><img src="{webroot}theme/default/images/nopic.jpg" /><span><a>没有资料</a></span></li>
                <li><img src="{webroot}theme/default/images/nopic.jpg" /><span><a>没有资料</a></span></li>
                <li><img src="{webroot}theme/default/images/nopic.jpg" /><span><a>没有资料</a></span></li>
                <li><img src="{webroot}theme/default/images/nopic.jpg" /><span><a>没有资料</a></span></li>
                <li><img src="{webroot}theme/default/images/nopic.jpg" /><span><a>没有资料</a></span></li>
                {/rs:eof}
                <li><a href="{$rs[link]}" title="{$rs[title]}"><img src="{$rs[pic]}" width="140" height="100" alt="{$rs[title]}" /></a><span><a href="{$rs[link]}" title="{$rs[title]}">{sdcms.cutstr($rs[title],16,1)}</a></span></li>
                {/sdcms:rs}
            </ul>
            <div class="c"></div>
            </div>
            <div class="iright"><img src="{webroot}theme/default/images/arr_right.gif" width="32" height="43" /></div>
        </div>
    </div>
    
    <div class="w980 mc" id="container">
        <div class="left">
            {sdcms:rp table="sd_category" top="6" where="followid=0 and modeid>0" order="ordnum,cateid" var="sdcms_dim:sonid" auto="j"}
            <div class="block b">
                <div class="subject"><span><a href="{$rp[link]}">更多>></a></span><a href="{$rp[link]}">{$rp[catename]}</a></div>
                {sdcms:rs top="1" field="id,title,style,createdate,isurl,url,classid,pic,intro" table="sd_content" where="islock=1 and classid in([sdcms_dim]) and ispic=1 and isnice=1" order="ontop desc,id desc"}<div class="toppic"><img src="{$rs[pic]}" width="100" height="70" /><a href="{$rs[link]}" title="{$rs[title]}"{if $rs[isurl]=1} target="_blank"{/if}>{sdcms.cutstr($rs[title],20,1)}</a>{sdcms.cutstr(sdcms.nohtml($rs[intro]),54,1)}</div>{/sdcms:rs}
                <ul class="topnew">
                {sdcms:rs top="8" field="id,title,style,createdate,isurl,url,classid" table="sd_content" where="islock=1 and classid in([sdcms_dim])" order="ontop desc,id desc"}
                    <li><span>[{sdcms.getdate($rs[createdate],"-",1)}]</span>·<a href="{$rs[link]}" title="{$rs[title]}"{if $rs[isurl]=1} target="_blank"{/if} {$rs[style]}>{sdcms.cutstr($rs[title],30,1)}</a></li>
                {/sdcms:rs}    
                </ul>
            </div>
            {/sdcms:rp}
        </div>
        <div class="right">
            <div class="b mt10">
                <div class="subject">最新评论</div>
                <ul class="comment">
                    {sdcms:rs top="5" field="contentid,username,avatar,content" table="sd_expand_comment" where="islock=1" order="commentid desc"}
                    <li><img src="{webroot}upfile/avatar/{$rs[avatar]}/normal.jpg" width="48" height="48" /><span>{$rs[username]}：</span><a href="{webroot}plug/comment.asp?id={$rs[contentid]}">{sdcms.cutstr(sdcms.nohtml($rs[content]),40,1)}</a></li>
                    {/sdcms:rs}
                </ul>
                <span class="c"></span>
            </div>
            
            <div class="b mt10">
                <div class="subject">最新投票</div>
                {sdcms:rs top="1" field="id,title,votetype,voteitem,voteresult" table="sd_expand_vote" where="islock=1"}
                {dim voteitem_arr:voteitem_arr=split($rs[voteitem],",")}
                <form class="form_vote" method="post">
                <ul class="vote">
                    <li class="title">{$rs[title]}</li>
                    <input name="id" id="voteid" type="hidden" value="{$rs[id]}" />
                    {for i=0 to ubound(voteitem_arr)}
                    <li><input type="{if $rs[votetype]=1}radio{else}checkbox{/if}" name="t1" value="{i}" {if i=0} data-rule="投票项目:checked;"{/if}>{voteitem_arr(i)}</li>
                    {/for} 
                    <li class="bnt"><input type="image" src="{webroot}theme/default/images/bnt_vote.gif" />
                    <a href="{webroot}plug/vote.asp?id={$rs[id]}"><img src="{webroot}theme/default/images/bnt_view.gif" width="52" height="26" /></a></li>
                </ul>
                </form>
                {/sdcms:rs}
            </div>
            
            <div class="b mt10">
                <div class="subject"><a href="plug/tags.asp">标签</a></div>
                <div class="toptag">
                    {sdcms:rs top="10" field="title,hits,style" table="sd_expand_tags" where="hits>0" order="hits desc,id desc"}
                    <a href="{webroot}plug/tags.asp?tag={server.urlencode($rs[title])}" {$rs[style]}>{$rs[title]} ({$rs[hits]})</a>
                    {/sdcms:rs}
                    <span class="c"></span>
               </div>
            </div>
            
            <div class="b mt10">
                <div class="subject">日期归档</div>
                <ul class="toplist">
                    {sdcms:rs table="sd_content" top="10" field="year(createdate) as postyear,month(createdate) as postmonth,count(1) as [count]" group="year(createdate),month(createdate)" where="islock=1" order="year(createdate) desc,month(createdate) desc"}
                        <li><a href="{webroot}plug/date.asp?logdate={$rs[postyear]}-{$rs[postmonth]}">{$rs[postyear]}-{right("0"&$rs[postmonth],2)} [{$rs[count]}]</a></li>
                {/sdcms:rs}    
                </ul>
            </div>
        </div>
    </div>
    
    <div class="w978 mc mt10 b">
        <div class="subject">友情链接</div>
        <div class="link">
            <ul>
                {sdcms:rs top="0" table="sd_expand_link" where="islock=1 and islogo=1" order="id desc"}
                {rs:eof}<li>没有资料</li>{/rs:eof}
                <li><a href="{$rs[weburl]}" target="_blank"><img src="{$rs[weblogo]}" width="88" height="31" border="0" alt="{$rs[webname]}" /></a></li>
                {/sdcms:rs}
            </ul>
            <ul>
                {sdcms:rs top="0" table="sd_expand_link" where="islock=1 and islogo=0" order="id desc"}
                {rs:eof}<li>没有资料</li>{/rs:eof}
                <li><a href="{$rs[weburl]}" target="_blank">{sdcms.cutstr($rs[webname],20,0)}</a></li>
                {/sdcms:rs}
            </ul>
        </div>
    </div>
    
    {sdcms:include("sdcms_foot.asp")}